<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-09-16 15:37
 *
 * Version: 2.0
 */

namespace App\Modules\Employee\Validators;


class DynamicControllerValidator
{

	public static function validator(){
		return [
			'getDynamicList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			],
			'addDynamic' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
//				'detail' => [
//					'title'  => '动态内容',
//					'rule'   => 'required',
//					'message' => []
//				],
				'image' => [
					'title'  => '动态图片',
					'rule'   => 'nullable',
					'message' => []
				],
				'video' => [
					'title'  => '动态视频',
					'rule'   => 'nullable',
					'message' => []
				],

			],
			'editDynamic' => [
				'dynamic_id' => [
					'title'  => '动态ID',
					'rule'   => 'required|numeric',
					'message' => []
				],
//				'detail' => [
//					'title'  => '动态内容',
//					'rule'   => 'required',
//					'message' => []
//				],
				'image' => [
					'title'  => '动态图片',
					'rule'   => 'nullable',
					'message' => []
				],
				'video' => [
					'title'  => '动态视频',
					'rule'   => 'nullable',
					'message' => []
				],
			],
			'delDynamic' => [
				'dynamic_id' => [
					'title'  => '动态ID',
					'rule'   => 'required|numeric',
					'message' => []
				],
			],
			'getStoreDynamicList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			]
		];
	}
}